#include <stdio.h>

int main(){
    int n;
    scanf("%d", &n);
    int arr[1005];
    printf("[");
    for(int i = 0; i < n; i++){
        if(i != 0)
            printf(",");
        arr[i] = 1;
        for(int j = i - 1; j > 0; j--){
            arr[j] += arr[j - 1];
        }
        printf("[");
        for(int j = 0; j < i; j++){
            printf("%d,", arr[j]);
        }
        printf("%d]", arr[i]);
    }
    printf("]");
    return 0;
}